package _992ZhuangTai.impl;

import _992ZhuangTai.Context;
import _992ZhuangTai.State;

/**
 * @StopState: 状态接口实现类 停止类
 * @author: ZBoHang
 * @time: 2021/9/17 16:09
 */
public class StopState implements State {

    @Override
    public void doAction(Context context) {
        System.out.println("停止状态");
        context.setState(this);
    }

    @Override
    public String toString() {
        return "Stop";
    }
}
